package org.bonorsoft.modules.wechat.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import java.util.List;

public interface NywxPhotoMapper {
    @Insert("insert into nywx_photo(tjid, photo_path) values (#{tjid}, #{photo})")
    int addPhoto(String tjid, String photo);

    @Select("select photo_path from nywx_photo where tjid = #{tjid}")
    List<String> getPhoto(String tjid);

    @Delete("delete from nywx_photo where tjid = #{tjid}")
    void deletePhoto(String tjid);
}
